package com.sld.concrete.device.service.impl;

import java.util.List;

import com.sld.concrete.device.domain.RelateDeviceVehicle;
import com.sld.concrete.device.mapper.RelateDeviceVehicleMapper;
import com.sld.concrete.device.service.IRelateDeviceVehicleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;

import javax.annotation.Resource;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author topviewers
 * @date 2022-03-14
 */
@Service
public class RelateDeviceVehicleServiceImpl implements IRelateDeviceVehicleService
{
    @Resource
    private RelateDeviceVehicleMapper relateDeviceVehicleMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public RelateDeviceVehicle selectRelateDeviceVehicleById(Long id)
    {
        return relateDeviceVehicleMapper.selectRelateDeviceVehicleById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param relateDeviceVehicle 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<RelateDeviceVehicle> selectRelateDeviceVehicleList(RelateDeviceVehicle relateDeviceVehicle)
    {
        return relateDeviceVehicleMapper.selectRelateDeviceVehicleList(relateDeviceVehicle);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param relateDeviceVehicle 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertRelateDeviceVehicle(RelateDeviceVehicle relateDeviceVehicle)
    {
        return relateDeviceVehicleMapper.insertRelateDeviceVehicle(relateDeviceVehicle);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param relateDeviceVehicle 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateRelateDeviceVehicle(RelateDeviceVehicle relateDeviceVehicle)
    {
        return relateDeviceVehicleMapper.updateRelateDeviceVehicle(relateDeviceVehicle);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteRelateDeviceVehicleByIds(String ids)
    {
        return relateDeviceVehicleMapper.deleteRelateDeviceVehicleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteRelateDeviceVehicleById(Long id)
    {
        return relateDeviceVehicleMapper.deleteRelateDeviceVehicleById(id);
    }

    @Override
    public List<RelateDeviceVehicle> selectAll() {
        return relateDeviceVehicleMapper.selectAll();
    }

    @Override
    public RelateDeviceVehicle selectByDeviceId(String deviceId) {
        return relateDeviceVehicleMapper.selectByDeviceId(deviceId);
    }

}
